package com.yantong.service;

import com.yantong.pojo.Brokerage;
import com.yantong.pojo.BusinessCardIndustry;
import com.yantong.pojo.CommissionLog;
import com.yantong.pojo.TBusinessCard;
import com.yantong.pojo.vo.BrokerageVo;
import com.yantong.utils.PageUtils;

import java.util.List;

/**
 * Created by Administrator on 2020-11-03.
 */
public interface TBusinessCardService {

    /**
     * 搜索我的好友
     * @param tCardId
     * @param wxCodeOrPhone
     * @return
     */
    public List<TBusinessCard>  searchMyFriends(Long tCardId, String wxCodeOrPhone);

    /**
     * 我的好友
     * @param tCardId
     * @return
     */
    public List<TBusinessCard>  myFriends(Long tCardId, String industryId);

    /**
     * 查询电子名片信息
     * @param phone
     * @return
     */
    public TBusinessCard selectCardByPhone(String phone);

    /**
     * 查询电子名片信息
     * @param tCardId
     * @param phone
     * @return
     */
    public TBusinessCard selectTBusinessCardByPhone(Long tCardId, String phone);

    /**
     * 查询电子名片信息
     *
     * @param id 电子名片信息ID
    * @return 电子名片信息
     */
    public TBusinessCard selectTBusinessCardById(Long id);

    /**
     * 查询电子名片信息列表
     *
     * @param tBusinessCard 电子名片信息
     * @return 电子名片信息集合
     */
    public List<TBusinessCard> selectTBusinessCardList(TBusinessCard tBusinessCard);

    /**
     * 新增电子名片信息
     *
     * @param tBusinessCard 电子名片信息
     * @return 结果
     */
    public int insertTBusinessCard(TBusinessCard tBusinessCard);

    /**
     * 修改电子名片信息
     *
     * @param tBusinessCard 电子名片信息
     * @return 结果
     */
    public int updateTBusinessCard(TBusinessCard tBusinessCard);

    /**
     * 删除电子名片信息信息
     *
     * @param id 电子名片信息ID
     * @return 结果
     */
    public int deleteTBusinessCardById(Long id);

    PageUtils<BrokerageVo> brokerageList(int offset, int limit);

    BrokerageVo getBrokerageById(Long id);
    PageUtils<CommissionLog> commissionLogList(String mid, String type, String thisMonth, Integer offset, Integer limit);
    public void editBrokerage(Brokerage brokerage);


    List<BusinessCardIndustry> getIndustryList();

    List<TBusinessCard> selectByAll();
}
